package com.forum.Service;

import com.forum.Entity.Comment;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CommentService {
    List<Comment> getComments(String postId);

    void addComment(Comment comment);

    void addReply(Comment comment);

    void addlikes(String targetId);

    void cutlikes(String targetId);

    void deletePostComment(String postId);

    List<Comment> getCommentsByPostId(String postId);

    PageInfo<Comment> getCommentsByPost(Integer pageNum, Integer pageSize, String postId, String content);

    void deleteComment(String commentId);
}
